package com.zy.chat.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;

@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class GroupMessages implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private  String groupName;

    private  String fromUser;

    private String content;

//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @TableField(fill = FieldFill.INSERT)
    private String sendTime;

    private String type;

    private String status;

    private  String chattype;
}
